<template>
  <view :class="['zm-icon', 'zm-icon-' + name, customClass]" :style="{ color, fontSize: size }"></view>
</template>

<script>
  export default {
    name: 'yy-icon',
    props: {
      customClass: {
        type: String,
        default: ''
      },
      name: {
        type: String,
        default: ''
      },
      color: {
        type: String,
        default: '#333'
      },
      size: {
        type: String,
        default: '22rpx'
      }
    },
    data() {
      return {}
    }
  }
</script>

<style lang="scss" scoped>
  .zm-icon {
    line-height: 1;
    display: inline-block;
  }
</style>
